<html>
<head>
<title>Test like widget</title>
<head>
	<!--  link rel="stylesheet" href="../resources/fontello-7b53befb/css/fontello.css"/-->
	<link rel="stylesheet" href="//ajax.googleapis.com/ajax/libs/dojo/1.8.3/dijit/themes/claro/document.css" />
	
	<script src="//ajax.googleapis.com/ajax/libs/dojo/1.8.3/dojo/dojo.js"></script>          
    <script data-dojo-config="async: true"></script>         
	<script>
	if(typeof(dojo) !== "undefined") {
		console.log("dojo loaded");
	}else{
		console.log("dojo did not loaded");
	}
	</script>
	<script type="text/javascript" src="../resources/scripts/likeWidget.js"></script>
	
</head>

<body>

<div id="likeWidget"></div>
</body>
<script>
require(["dojo/domReady!"], function(){
	likeWidget.init("likeWidget", "Like", "Dislike", 2, 2, iLikeIt, iDislikeIt);
	likeWidget.isDisabled = true;
});

var iLikeIt = function(){
	likeWidget.init("likeWidget", "Like", "Dislike", 3, 2, iLikeIt, iDislikeIt);			
};

var iDislikeIt = function(){
	likeWidget.init("likeWidget", "Like", "Dislike", 2, 3, iLikeIt, iDislikeIt);			
};

</script>

</html>